<?php
class Calendar {
	
	public static function format($pattern, $date) {
		return (is_numeric($date))
		? date($patter, $date)
		: date($pattern, strtotime($date));
	}
}